package com.iraeta.entity.main.vo;

import com.iraeta.entity.main.TreeNode;
import com.iraeta.entity.main.PermissionType;
import java.util.ArrayList;

public class SysPermission {
    public static ArrayList<TreeNode> getPermissionTreeNode(){
        TreeNode tbWork_Node = new TreeNode(String.valueOf(PermissionType.tbWork), "任务查看");
        TreeNode tbWork_work_Node = new TreeNode(String.valueOf(PermissionType.tbWork_work), "同步任务");
        TreeNode baseData_log_Node = new TreeNode(String.valueOf(PermissionType.baseData_log), "同步日志");
        tbWork_Node.addNode(tbWork_work_Node);
        tbWork_Node.addNode(baseData_log_Node);

        TreeNode baseData_Node = new TreeNode(String.valueOf(PermissionType.baseData), "基础数据");
        TreeNode baseData_dary_Node = new TreeNode(String.valueOf(PermissionType.baseData_dary), "OA人员档案");
        baseData_Node.addNode(baseData_dary_Node);

        ArrayList<TreeNode> res = new ArrayList<TreeNode>();
        res.add(tbWork_Node);
        res.add(baseData_Node);
        return res;
    }
}
